package com.tuangou.tuangougoods.goods.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.common.utils.Query;

import com.tuangou.tuangougoods.goods.dao.GoodsTypeDao;
import com.tuangou.tuangougoods.goods.entity.GoodsTypeEntity;
import com.tuangou.tuangougoods.goods.service.GoodsTypeService;


@Service("goodsTypeService")
public class GoodsTypeServiceImpl extends ServiceImpl<GoodsTypeDao, GoodsTypeEntity> implements GoodsTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GoodsTypeEntity> page = this.page(
                new Query<GoodsTypeEntity>().getPage(params),
                new QueryWrapper<GoodsTypeEntity>()
        );

        return new PageUtils(page);
    }

}